package com.exam.demo.service;

import com.exam.demo.pojo.Answer;
import com.exam.demo.pojo.Problem;

import java.util.List;

public interface LibraryService {
    int addProblem(Problem problem);
    int deleteProblem(int proNo);
    int editProblem(Problem problem);
    int addAnswer(Answer answer);
    int deleteAnswer(int ansNo);
    int editAnswer(Answer answer);
    int updateProblemAdd(Answer answer);
    int updateProblemDelete(int ansNo);
    Problem getProByProNo(int proNo);
    List<Problem> getProblemList();
    List<Problem> getProblemListByTeaNo(String teaNo);
    List<Problem> getProblemListByProDetail(String proDetail);
    List<Problem> getProblemListByProKeyw(String proKeyw);
    List<Problem> getProblemListByProType(String proType);
    List<Problem> getProblemListByChaNo(int chaNo);
    List<Problem> getProblemListByProDif(String proDif);
    List<Problem> getProblemListByProDifAndProType(String proDif, String proType);
    Answer getAnswerByProAnsno(int proAnsno);
    int getAnsnoByProNo(int proNo);
}
